//
//  GYMySecondTableViewCell.m
//  Visitor
//
//  Created by x on 2017/9/20.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import "GYMySecondTableViewCell.h"

@interface GYMySecondTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *cachesLable;

@end

@implementation GYMySecondTableViewCell

+ (GYMySecondTableViewCell *)cellWithTableView:(UITableView *)tableView {
    
    return [[[NSBundle mainBundle]loadNibNamed:@"GYMySecondTableViewCell" owner:nil options:nil]firstObject];
}



- (void)setImageName:(NSString *)imageName {
    _imageName = imageName;
    self.iconImage.image = [UIImage imageNamed:imageName];
}

- (void)setTitle:(NSString *)title {
    _title = title;
    self.titleLable.text = title;
}

- (void)setIndexPath:(NSIndexPath *)indexPath {
    _indexPath = indexPath;
    if (indexPath.section == 0 && indexPath.row == 4) {
        self.cachesLable.hidden = NO;
    }else {
        self.cachesLable.hidden = YES;
    }
}
@end
